An AutoCAD link is installed with the Asset Management Module that supports drawing tag extraction. It can use information that exists in drawings to create and manage links between the drawings and objects. The information can reside in AutoCAD attributes embedded in blocks that are inserted into the drawings to represent plant assets. The Asset Management Module can read this information and store it in the Meridian Enterprise vault. The information can then be used to find or create matching objects in the vault. Users can link these objects to the drawing with indirect linking as described in Indirect linking using object references and theBlueCielo Meridian Asset Management Module User's Guide.
Notes
Configuring tag extraction includes specifying the attribute tags within your equipment tag blocks for which you want to extract values. You must also specify the corresponding Meridian Enterprise document property where you want to store the extracted data.
This topic describes how to configure basic tag extraction. That is, one attribute tag per object, where the tag value alone is the object name. This is the typical scenario. Additional instructions to configure more complex scenarios are described in the following topics.
Before you begin
Compile a list of the block names used by your organization as equipment tag blocks in the past and present. For each block, list the attribute tag names that contain asset numbers. The Meridian Enterprise property where the tag numbers will be stored must already exist and it must be configured as the memo data type.
Tip To export the settings file to your computer, click the Export button. This can be useful if you would rather edit the file in your favorite text editor. You can then copy your changes to the Clipboard and paste them into Configurator.
Tip You can type comments in the file by beginning each line with a semicolon (;).
[TAGEXTRACTION]
TagBlockTypes=XDIN_,XDHV,XDE_SRV,XDE_SIZ,XDE_PMP,XDCV
If multiple block names begin with the same characters and will all use the same settings, you can type a single wildcard pattern to match the names, for example, XD* would be equivalent to specifying the individual block names in the example above. However, if you want to specify different settings for each block name, you must list each block name separately and create a separate settings section for it as described below.
TagListProperty=<PropertySetName.PropertyName>
Tip You can find the names of property sets and properties on the Properties page of each document type definition.
To add a prefix or suffix to the value that is stored in the property, see Configuring object name prefixes and suffixes.
Setting | Description |
---|---|
TagProperty |
A single attribute tag name in the block that contains the object name to be extracted. If different tag names contain the object name depending on the value of a document property, see Configuring alternate object names. If any of the attribute tags will be empty, add the following setting (the default is 0) in the [TAGEXTRACTION] section: AllowEmptyFields=1 NEW This setting may also specify the name of a VBScript function to calculate the tag name by using the value Script:<FunctionName>(<Attributes>) where <Attributes> is a comma-separated list of the attribute names to pass to the function for calculation. The link takes those names, retrieves their values, and places them in an array together with the other elements and passes that array to the function. The attribute names and values will be added to the array in the order that they are listed in this setting. We do not recommend omitting the list, which will negatively impact performance. The function should calculate the tag property name from the array elements and if successful, place it in the fourth element of the array and return True. Otherwise, it should return False. The structure of the array is demonstrated in the example function shown at the end of this topic. |
TagType |
The name of the Asset Management Module object type to find or create for the block. This setting is used to create and link objects to drawings as described in the BlueCielo Meridian Asset Management Module User's Guide. The name can be literal, for example, Instrument or it can be a value in the attribute itself. NEW To specify the object type as an attribute value, specify the tag name that contains the object type in braces, for example, [TAG-NAME]. NEW You may also specify the object type as a combination of constant strings and tag values with separator characters, for example, TAG-[TAG-SYSTEM]-[TAG-CLASS]. Spaces may not be used as separator characters or at the beginning or end of object names. Filters described in Configuring tag filters will also be applied to this setting. NEW This setting may also specify the name of a VBScript function to calculate the tag name similar to the TagProperty setting. |
UseTagPrePostFix |
Set to 0 or 1 to ignore or apply object name prefixes and suffixes as described in Configuring object name prefixes and suffixes. If this setting is omitted, the settings will be applied. |
Following is an example of one complete TAGBLOCK section for a single attribute tag:
[TAGBLOCK_XDIN]
TagProperty=NAME
TagType=Instrument
HKEY_LOCAL_MACHINE\SOFTWARE\Cyco\AutoManager Meridian\CurrentVersion\AutoCADLink
Set SyncTagsOnSave to 0 to disable extraction when the drawing is saved, set it to 1 (default) to enable extraction.
Note When tag extraction occurs, a Meridian Asset Management Module Client Extension license is claimed.
Following is an example VBScript function for use with the TagProperty or TagType setting.
' Option Compare Text ' args - array of: ' 0: (In) layout name, string ' 1: (In) block name, string ' 2: (In) array of attribute names, strings ' 3: (In) array of attribute values, strings ' 4: (Out) tag value, string ' function should return TRUE upon success or FALSE on failure Function ReadTag(args) Dim fRes fRes = False If IsArray(args) Then Dim Layout Dim Block Dim Names Dim Values Layout = args(0) Block = args(1) Names = args(2) Values = args(3) If IsArray(Names) And IsArray(Values) Then Dim TagValue Dim Count Count = ubound(Values) For i = 0 To Count TagValue = TagValue + Values(i) Next args(4) = TagValue fRes = True End If End If ReadTag = fRes End Function ' ReadTag
Related concepts
About importing and maintaining proxy objects
Matching object numbers to documents
When the documents are linked in the maintenance management system
When the documents are not linked
When the documents are in a document management system
Related tasks
Configuring object name prefixes and suffixes
Combining multiple attribute tags